from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
                       url('^logout$', 'check_out.views.logout', name='logout'),
                       url(r'retailstore/login/login$', 'check_out.views.login',name='login'),
                       url(r'retailstore/login/register_render.html','check_out.views.register_render'),
                       url(r'retailstore/login/login_render$','check_out.views.login_render', name='login_render'),
                       url(r'retailstore/login/register.html', 'check_out.views.register'),
                       url(r'^RetailStore/store/index$','store.views.index', name='index'),
                       (r'^RetailStore/store/itemdetails/(?P<id>\d+)/' ,'store.views.itemf'),
                         (r'^RetailStore/store/itemlist/$' ,'store.views.iteml'),
                         (r'photo/(?P<id>\d+)','store.views.itemf'),
                         url(r'retailstore/shoppingcart/addtocart/(?P<id>\d+)', 'cart.views.add',name='add'),
                         url(r'retailstore/shoppingcart/seecart', 'cart.views.see', name="seecart"),
                         url(r'retailstore/shoppingcart/changenumber/(?P<id>\d+)','cart.views.add'),
                         url(r'retailstore/shoppingcart/confirm/(?P<quantity>\d+)/(?P<id>\d+)','cart.views.confirm',name='confirm'),
                         url(r'retailstore/store/collection/(?P<collection>\d+)','store.views.render_collection', name='collection'),
                         url(r'retailstore/store/promotion/(?P<promotion>\d+)','store.views.promotion', name='promotion'),
                         url(r'retailstore/store/category/(?P<category>\d+)','store.views.category', name='category'),
                         url(r'RetailStore/confirm_registered/(?P<username>\w+)','check_out.views.confirm_registered',name='confirm_registered'),
                         url(r'RetailStore/parse_mail_reply/(?P<secret_id>\w+)/(?P<token>\w+)','check_out.views.parse_email_reply', name='parse_email_reply'),
                         url(r'^captcha/', include('captcha.urls')),
    # Examples:
    # url(r'^$', 'RetailStore00.views.home', name='home'),
    # url(r'^RetailStore00/', include('RetailStore00.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
)
